<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="{% url "addHoot" %}" style="text-decoration: none">添加作者</a>
<a href="{% url "addAuter" %}" style="text-decoration: none">添加图书</a>
<form action="" method="post">
    {% csrf_token %}
    <table border="1">
    <tr>
        <td>类型</td>
        <td>图书</td>
        <td>作者</td>
        <td>内容</td>
        <td>借阅时间</td>
        <td>操作</td>
    </tr>
    {% for i in now %}
        <tr>
            <td>{{ i.btype }}</td>
            <td>{{ i.book }}</td>
            <td><a href="{% url "Rooter" i.author.id %}" style="text-decoration: none">{{ i.author.name }}</a></td>
            <td>{{ i.content }}</td>
            <td>{{ i.time }}</td>
            <td>
                <a href="{% url "deleB" i.id %}" style="text-decoration: none">删除</a>
                <a href="{% url "Regttare" i.id %}" style="text-decoration: none">修改</a>
            </td>
        </tr>

    {% endfor %}
    {% if now.number > 1 %}
        <a href="{% url "Shower" %}?page={{ last }}" style="text-decoration:none">上一页</a>
    {% endif %}
    <b>当前页&nbsp;&nbsp;第{{ now.number }}页</b>
    {% if now.number < max %}
        <a href="{% url "Shower" %}?page={{ max }}" style="text-decoration: none">下一页</a>
    {% endif %}
    </table>
</form>
</body>
</html>